package com.fy.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor

@TableName("user")
public class User implements Serializable {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;

    private String username;

    private String password;

    private Date createTime;

    private Date updateTime;

    private Date lastLoginTime;

    private Integer loginStatus;

    @TableField(value = "email_id")
    private Integer emailId;

    @TableField(value = "total_space")
    private Long totalSpace;

    @TableField(value = "use_space")
    private Long useSpace;

    @TableField(value = "is_admin")
    private boolean isAdmin;

    @TableField(value = "avatar")
    private String avatar;

    private Integer status;

    private String position;

    /**积分
     *
     */
    private Long point;
    /**描述
     *
     */
    private String description;
    /**
     * 空间权限
     */
    private Integer spaceAuth;
    /**
     * 是否是VIP
     */
    private Integer isVip;
    /**
     * VIP过期时间
     */
    private Date vipOutTime;
}